package com.itheima.spring.dao;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.sql.Connection;
import java.sql.SQLException;


public interface AccountDao {

    //加钱
    void inUser(String name,int money);

    //减钱
    void outUser(String name,int money);

    //带事务控制的转出方法
    void outUser(Connection connection, String outName, int money) throws SQLException;

    //带事务控制的转入方法
    void inUser(Connection connection, String inName, int money) throws SQLException;
}
